package com.itheima.fanxing;

import java.util.ArrayList;

public class Demo03 {

    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("坤坤");
        list.add("滔滔");
        list.add("小鹿");
        list.add("签签");

        Object[] objects = list.toArray();
        for (Object object : objects) {
            System.out.println(object);
        }
        String[] strings = list.toArray(new String[list.size()]);
        for (String string : strings) {
            System.out.println(string.length());
        }
    }
}
